-
Notifications
You must be signed in to change notification settings - Fork 52
Fix Clang warnings by using proper function prototypes in macros #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ShravanDeva5327 change looks good to me, but DCO is missing. can you address that?
Signed-off-by: Shravan Deva <[email protected]>
75f3b4f
to
519b532
Compare
@fujitatomoya I forgot to sign off the commit. I've added it now. |
By the way, it's good practice to reference any relevant issue or PR in the PR description. This way, reviewers can get the whole context behind a change. This also applies when creating issues, of course. In this case, since this PR supersedes #115 (and since my comments on that PR may be relevant for this PR), it would be good to include "Supersedes #115" on a separate line in the PR description. |
That makes sense, I’ve edited the PR description, and I’ll make sure to reference related issues or PRs in the future too |
Signed-off-by: Shravan Deva <[email protected]>
Signed-off-by: Shravan Deva <[email protected]>
Signed-off-by: Shravan Deva <[email protected]>
This should hopefully resolve the warnings. Since I'm not able to reproduce them locally, I can't confirm if they're fully resolved. @christophebedard Could you please trigger the CI job manually to check? |
Signed-off-by: Shravan Deva <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be weird issues with downloading from http://archive.ubuntu.com in the nightly_linux_clang_libcxx job. I retriggered it a second time. |
..and I just remembered that I should use ci_linux_clang_libcxx instead of nightly_linux_clang_libcxx for manually-triggered jobs 😬 |
That failed again due to issues connecting to archive.ubuntu.com. Let's just wait a bit. |
Signed-off-by: Shravan Deva <[email protected]>
Looks like the same issue is causing GitHub actions to fail
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, thanks for iterating!
Now it's just about validating that this fixes the clang warnings (which I think it should) and then running full CI.
The warnings indeed disappeared! https://ci.ros2.org/view/manual/job/ci_linux_clang_libcxx/85/clang/ Now I'll trigger full CI. |
Pulls: #179 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this!
https://github.com/Mergifyio backport kilted |
✅ Backports have been created
|
Signed-off-by: Shravan Deva <[email protected]> (cherry picked from commit 2ca74e7)
Yes, thank you @ShravanDeva5327! |
… (#180) (cherry picked from commit 2ca74e7) Signed-off-by: Shravan Deva <[email protected]> Co-authored-by: Shravan Deva <[email protected]>
This PR updates the macros to specify (void) in argument lists for functions that take no arguments. This resolves warnings from
Clang(-Wstrict-prototypes).
Tested locally with Clang; no build issues observed.
Closes #178
Supersedes #115